home *** CD-ROM | disk | FTP | other *** search
Wrap
ddddmmmmTTTTCCCCAAAAddddddddTTTTCCCC((((3333ddddmmmm)))) ddddmmmmTTTTCCCCAAAAddddddddTTTTCCCC((((3333ddddmmmm)))) NNNNAAAAMMMMEEEE dmTCAddTC, dmTCAddFrames - digital media timecode mathematics SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS ####iiiinnnncccclllluuuuddddeeee <<<<ddddmmmmeeeeddddiiiiaaaa////ddddmmmm____ttttiiiimmmmeeeeccccooooddddeeee....hhhh>>>> DDDDMMMMssssttttaaaattttuuuussss ddddmmmmTTTTCCCCAAAAddddddddTTTTCCCC (((( DDDDMMMMttttiiiimmmmeeeeccccooooddddeeee **** rrrreeeessssuuuulllltttt,,,, ccccoooonnnnsssstttt DDDDMMMMttttiiiimmmmeeeeccccooooddddeeee ****ssss1111,,,, ccccoooonnnnsssstttt DDDDMMMMttttiiiimmmmeeeeccccooooddddeeee ****ssss2222,,,, iiiinnnntttt ****oooovvvveeeerrrrfffflllloooowwwwuuuunnnnddddeeeerrrrfffflllloooowwww )))) DDDDMMMMssssttttaaaattttuuuussss ddddmmmmTTTTCCCCAAAAddddddddFFFFrrrraaaammmmeeeessss (((( DDDDMMMMttttiiiimmmmeeeeccccooooddddeeee **** rrrreeeessssuuuulllltttt,,,, ccccoooonnnnsssstttt DDDDMMMMttttiiiimmmmeeeeccccooooddddeeee ****ssss1111,,,, iiiinnnntttt ffffrrrraaaammmmeeeessss,,,, iiiinnnntttt ****oooovvvveeeerrrrfffflllloooowwwwuuuunnnnddddeeeerrrrfffflllloooowwww )))) TTTTYYYYPPPPEEEESSSS _D_M_t_i_m_e_c_o_d_e A structure containing a representation of SMPTE time code on which certain mathematical and utility functions can be performed. Can be used with: ddddmmmmTTTTCCCCAAAAddddddddTTTTCCCC((((3333ddddmmmm)))), ddddmmmmTTTTCCCCAAAAddddddddFFFFrrrraaaammmmeeeessss((((3333ddddmmmm)))), ddddmmmmTTTTCCCCTTTTooooSSSSttttrrrriiiinnnngggg((((3333ddddmmmm)))), ddddmmmmTTTTCCCCFFFFrrrroooommmmSSSSeeeeccccoooonnnnddddssss((((3333ddddmmmm)))), ddddmmmmTTTTCCCCTTTTooooSSSSeeeeccccoooonnnnddddssss((((3333ddddmmmm)))), ddddmmmmTTTTCCCCFFFFrrrroooommmmSSSSttttrrrriiiinnnngggg((((3333ddddmmmm)))), ddddmmmmTTTTCCCCFFFFrrrraaaammmmeeeessssPPPPeeeerrrrDDDDaaaayyyy((((3333ddddmmmm)))), and ddddmmmmTTTTCCCCFFFFrrrraaaammmmeeeessssBBBBeeeettttwwwweeeeeeeennnn((((3333ddddmmmm)))). Can also be used with the ddddmmmmLLLLTTTTCCCC((((3333ddddmmmm)))) and ddddmmmmVVVVIIIITTTTCCCC((((3333ddddmmmm)))) routines. See also DDDDMMMMttttiiiimmmmeeeeccccooooddddeeee((((3333ddddmmmm)))). AAAARRRRGGGGUUUUMMMMEEEENNNNTTTTSSSS _r_e_s_u_l_t The result of the addition operation. Note that this must be a valid pointer, and should not point to the same _D_M_t_i_m_e_c_o_d_e as _s_1 or _s_2. _s_1, _s_2 The timecode operand(s) to be used in the addition. _f_r_a_m_e_s The number of frames to add to the operand _s_1. _u_n_d_e_r_f_l_o_w_o_v_e_r_f_l_o_w An optional argument so that the user of the library can tell if an underflow or overflow condition occurred. If the app doesn't care about overflow/underflow, it should pass in NULL. Otherwise, _u_n_d_e_r_f_l_o_w_o_v_e_r_f_l_o_w will be set to 0 (normal), a positive number (overflow), or a negative number (underflow). PPPPaaaaggggeeee 1111 ddddmmmmTTTTCCCCAAAAddddddddTTTTCCCC((((3333ddddmmmm)))) ddddmmmmTTTTCCCCAAAAddddddddTTTTCCCC((((3333ddddmmmm)))) DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN ddddmmmmTTTTCCCCAAAAddddddddTTTTCCCC adds operand _s_1 to operand _s_2. It returns the result of the addition in _r_e_s_u_l_t. The tc_type of _r_e_s_u_l_t will be the same as the tc_type of the operands. It is required that the tc_type of _s_1 be the same as the tc_type of _s_2. See NNNNOOOOTTTTEEEESSSS for information on adding timecodes of differing tc_type. ddddmmmmTTTTCCCCAAAAddddddddTTTTCCCC will return DM_FAILURE if the addition failed. See RRRREEEETTTTUUUURRRRNNNN VVVVAAAALLLLUUUUEEEE. ddddmmmmTTTTCCCCAAAAddddddddFFFFrrrraaaammmmeeeessss adds _f_r_a_m_e_s video frames to operand _s_1 and returns the result in _r_e_s_u_l_t. The tc_type of _r_e_s_u_l_t will be the same tc_type as _s_1. It is acceptable for _f_r_a_m_e_s to be a negative value, but overflowunderflow from ddddmmmmTTTTCCCCAAAAddddddddFFFFrrrraaaammmmeeeessss should be checked to verify that there was no underflow condition. RRRREEEETTTTUUUURRRRNNNN VVVVAAAALLLLUUUUEEEE If a DDDDMMMMttttiiiimmmmeeeeccccooooddddeeee operand (_s_1 or _s_2) contains an illegal timecode value (e.g., a negative entry, invalid frame number, etc.), these functions will return DM_FAILURE, and the contents of _r_e_s_u_l_t will be undefined. If the result of the addition overflows or underflows the 24 hour period, these functions will return DM_SUCCESS, and the contents of _r_e_s_u_l_t will have wrapped to a 24 hour clock. The _o_v_e_r_f_l_o_w_u_n_d_e_r_f_l_o_w parameter will have been set, however, on an underflow or overflow condition. ddddmmmmTTTTCCCCAAAAddddddddTTTTCCCC and ddddmmmmTTTTCCCCAAAAddddddddFFFFrrrraaaammmmeeeessss return DM_SUCCESS upon successful completion of the addition operation. NNNNOOOOTTTTEEEESSSS In order for DDDDMMMMttttiiiimmmmeeeeccccooooddddeeee's of differing _t_c__t_y_p_e (e.g., DM_TC_30_ND and DM_TC_2997_4FIELD_DROP) to be added, they must first be converted to either frames or seconds, and added as either frames or seconds, as appropriate for the situation. Note that when adding DDDDMMMMttttiiiimmmmeeeeccccooooddddeeee's with different tc_type's, different results may be obtained by adding them as seconds or as frames--which is why ddddmmmmTTTTCCCCAAAAddddddddTTTTCCCC does not allow two DDDDMMMMttttiiiimmmmeeeeccccooooddddeeee's of different tc_type's to be added. SSSSEEEEEEEE AAAALLLLSSSSOOOO dmTCFromSeconds(3dm), dmTCToSeconds(3dm), dmTCFromString(3dm), dmTCFromString(3dm), dmTCFramesPerDay(3dm), dmTCFramesBetween(3dm), dmLTC(3dm), dmVITC(3dm) PPPPaaaaggggeeee 2222